local zhengbing = fk.CreateSkill {

  name = "joyex__zhengbing",

  tags = {  },

}



zhengbing:addEffect("active", {
  name = "joyex__zhengbing",
  anim_type = "drawcard",
  card_num = 1,
  prompt = "#joyex__zhengbing",
  card_filter = function (self, to_select, selected, selected_targets)
    return Fk:getCardById(to_select):getMark("@@joyex__zhengbing-inhand") > 0
  end,
  on_use = function(self, room, effect)
    local room = player.room
    local player = effect.from
    local card = effect.cards
    room:recastCard(effect.cards, effect.from)
  end,
})

zhengbing:addEffect("maxcards", {
  name = "#zhengbing_maxcards",
  exclude_from = function(self, player, card)
    return card:getMark("@@joyex__zhengbing-inhand") > 0
  end,
})

return zhengbing